Tips for building a Twitter bot with R and Github Actions {https://t.co/FTrKW1S0zL} #rstats #DataScience
— R-bloggers (@Rbloggers) January 16, 2022
How To Connect R Shiny to Postgres Database – The Definite Guide {https://t.co/RXkj93s8IF} #rstats #DataScience
— R-bloggers (@Rbloggers) January 11, 2022
Handling Categorical Data in R – Part 2 {https://t.co/prxCat0CD3} #rstats #DataScience
— R-bloggers (@Rbloggers) January 12, 2022
10 New books added to Big Book of R {https://t.co/jD0IYutHTN} #rstats #DataScience
— R-bloggers (@Rbloggers) January 14, 2022
Handling Categorical Data in R – Part 4 {https://t.co/aZa7O7Ppxd} #rstats #DataScience
— R-bloggers (@Rbloggers) January 14, 2022
Handling Categorical Data in R – Part 3 {https://t.co/5XLloDXgxa} #rstats #DataScience
— R-bloggers (@Rbloggers) January 13, 2022
A dashboard illustrating bivariate time series forecasting with `ahead` {https://t.co/HYS6UIKMgl} #rstats #DataScience
— R-bloggers (@Rbloggers) January 14, 2022
New R job: Remote R Shiny Developer https://t.co/wzJznmODqA #rstats #DataScience #jobs
— R-bloggers (@Rbloggers) January 13, 2022
match Function in R with examples {https://t.co/cgkz5zocTr} #rstats #DataScience
— R-bloggers (@Rbloggers) January 17, 2022
Shinywordle: A shiny app to solve the game Worldle and the power of regular expressions {https://t.co/viFCa57DWE} #rstats #DataScience
— R-bloggers (@Rbloggers) January 14, 2022
RTutor: Gasoline Taxes and Consumer Behavior {https://t.co/nIxUNfihoK} #rstats #DataScience
— R-bloggers (@Rbloggers) January 14, 2022
Universal estimation with Maximum Mean Discrepancy (MMD) {https://t.co/HOudprEA6X} #rstats #DataScience
— R-bloggers (@Rbloggers) January 13, 2022
New R job: R Shiny Developer – Global https://t.co/JdyQC5yXuw #rstats #DataScience #jobs
— R-bloggers (@Rbloggers) January 13, 2022
Index Names and lapply Function in R {https://t.co/wMuc3o5RBL} #rstats #DataScience
— R-bloggers (@Rbloggers) January 11, 2022
Finally understanding what “statistical significance” and p-values mean: A simple example (w {https://t.co/MsbbkgSlDk} #rstats #DataScience
— R-bloggers (@Rbloggers) January 9, 2022
ANOVA in R – How To Implement One-Way ANOVA From Scratch {https://t.co/ItFWi9vMbx} #rstats #DataScience
— R-bloggers (@Rbloggers) December 21, 2021
Using bayesian optimisation to tune a XGBOOST model in R {https://t.co/fXXU4DMaEe} #rstats #DataScience
— R-bloggers (@Rbloggers) January 8, 2022
Tips for building a Twitter bot with R and Github Actions {https://t.co/FTrKW1S0zL} #rstats #DataScience
— R-bloggers (@Rbloggers) January 16, 2022
Hundreds of Statistical/Machine Learning models for univariate time series, using ahead, {https://t.co/ofxWxG0Mvv} #rstats #DataScience
— R-bloggers (@Rbloggers) December 20, 2021
A package of Machine Learning datasets has arrived for R – MLDataR {https://t.co/VUSqbrTFem} #rstats #DataScience
— R-bloggers (@Rbloggers) January 5, 2022
Top 7 Best R Shiny Books and Courses That Are Completely Free {https://t.co/v8JBTXbhPr} #rstats #DataScience
— R-bloggers (@Rbloggers) January 6, 2022
New Book on Machine Learning {https://t.co/Qn1knpQWTC} #rstats #DataScience
— R-bloggers (@Rbloggers) December 23, 2021
Introduction to Geospatial Visualization with the tmap package {https://t.co/fPasXDp9jb} #rstats #DataScience
— R-bloggers (@Rbloggers) December 31, 2021
Binary image classification using Keras in R: Using CT scans to predict patients with Covid {https://t.co/PZTKZC9TSu} #rstats #DataScience
— R-bloggers (@Rbloggers) January 2, 2022
How To Connect R Shiny to Postgres Database – The Definite Guide {https://t.co/RXkj93s8IF} #rstats #DataScience
— R-bloggers (@Rbloggers) January 11, 2022
Using databases with Shiny {https://t.co/Og4tMdVVzF} #rstats #DataScience
— R-bloggers (@Rbloggers) January 2, 2022
---
title: "RBloggers Top Tweets"
output:
flexdashboard::flex_dashboard:
vertical_layout: scroll
source_code: embed
theme:
version: 4
bootswatch: yeti
css: styles/main.css
---
```{r setup, include=FALSE}
library(flexdashboard)
library(dplyr)
library(httr)
library(lubridate)
library(jsonlite)
library(purrr)
rbloggers <- fromJSON("data/rbloggers.json")
get_tweet_embed <- function(user, status_id) {
url <-
stringr::str_glue(
"https://publish.twitter.com/oembed?url=https://twitter.com/{user}/status/{status_id}&partner=&hide_thread=false"
)
response <- GET(url) %>%
content()
return(shiny::HTML(response$html))
}
```
Column {.tabset .tabset-fade}
-----------------------------------------------------------------------
### Top Tweets - 7 days {.tweet-wall}
```{r}
rblog_7 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 7, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_7_html <-
map2_chr(rblog_7$screen_name, rblog_7$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_7_html}"))
```
### Top Tweets - 30 days {.tweet-wall}
```{r}
rblog_30 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 30, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_30_html <-
map2_chr(rblog_30$screen_name, rblog_30$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_30_html}"))
```